package com.rika.controller;

import com.rika.pojo.SystemModel;
import com.rika.response.Result;
import com.rika.service.SystemModelService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class SystemModelController {
    @Resource
    private SystemModelService systemModelService;

    @RequestMapping("selectAllSystemModel")
    public Result selectAll(){
        Result result=new Result();
        List<SystemModel> list=systemModelService.selectAll();
        result.setCode(200);
        result.setData(list);
        result.setMsg("查询成功");
        return result;
    }
}
